package UCM;

import Views.ViewDeleteUser;

/**
 * The use case for display delete user
 * @author Josh
 */
public class UCDisplayDeleteUser implements UCController {

    private ViewDeleteUser view;

    /**
     * Initualises the view
     * @param view
     */
    public UCDisplayDeleteUser(ViewDeleteUser view) {
        this.view = view;
    }

    /**
     * Precondition: User is logged in
     * user clicks on delete button
     * system displays delete ui
     * Postcondition: user is on delete user ui
     */
    public void run() {
        view.showDeleteUserPanel();
    }
}
